<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" >
        <title>开元大灌篮</title>
        <link rel="stylesheet" href="css/index.css">
        <script src="js/jquery-3.2.1.min.js"></script>
        <script src="js/vue.js"></script>
        <!-- <script type="text/javascript" src="js/jquery.min.js"></script>
        <script type="text/javascript" src="js/firework.js"></script> -->
 
    </head>
    <body>
        <div id="app" class="play">
            <!--左边主家用户 -->
            <div class="play_left_people">
                <!-- 头部 -->
                <header class="play_left_people_header">
                    <!-- 房间号 -->
                    <h3 class="play_left_people_headerH3">房间号:{{play.RoomNum}}</h3>
                    <!-- 分数 -->
                    <span class="play_left_people_headerFract">{{play.FractionNume}}</span>
                    <!-- 分享 -->
                    <img class="play_left_people_headerSharing" src="image/play/fenx.png" alt="">
                    <!-- 解散 -->
                    <img class="play_left_people_headerDissolve" @click='PlayDissolve' src="image/play/jies.png" alt="">
                </header>
                <!-- 中间内容 -->
                <section class="play_cont_section  scroll scroll_1"  >
                    <!-- 父级元素 -->
                  
                    <div class="play_cont_section_item scroll_con scroll_con_1 ">
                        <div class="scroll_con_item bg7" id="yi" style="left: -29px;">
                            <img :src=image+play.tenNum+'.png' alt="">
                            <img :src=image+'xxx.png' alt="" class="guang">
                        </div>
                        <div class="scroll_con_item bg7" id='er' style="left: 59px;">
                            <img :src=image+play.ertenNum+".png" alt="" class="cont_section_item1 ">
                            <img :src=image+'xxx.png' alt="" class="guang">
                        </div>
                        <div class="scroll_con_item bg7" id='san' style="left: 147px;">
                            <img :src=image+play.santenNum+".png" alt="" class="cont_section_item1 ">
                            <img :src=image+'xxx.png' alt="" class="guang">
                        </div>
                        <div class="scroll_con_item bg7" id='si' style="left: 236px;">
                            <img :src=image+play.sitenNum+".png" alt="" class="cont_section_item1 ">
                            <img :src=image+'xxx.png' alt="" class="guang">
                        </div>
                        <div class="scroll_con_item bg7" id="wu" style="left: 324px;">
                            <img :src=image+play.wutenNum+".png" alt="" class="cont_section_item1 ">
                            <img :src=image+'xxx.png' alt="" class="guang">
                        </div> 
                        <!-- <div class="scroll_con_item bg7" id="yi" style="left: 412px;">
                            <img :src=image+play.tenNum+'.png' alt="">
                        </div> -->
                    </div>

                </section>
                <!-- 第二级滚动 -->
                <section class="play_cont_sections scroll scroll_2">
                        <!-- 父级元素 -->
                        <div class="play_cont_section_items scroll_con scroll_con_2 ">
                            <div class="scroll_con_item bgwen bkw " style="left: -4px;">
                                <img :src=image+play.wenNum+".png" alt="">
                            </div>
                            <div class="scroll_con_item bgwen bkw " style="left: 84px;">
                                <img :src=image+play.wenNum+".png" alt="">
                            </div>
                            <div class="scroll_con_item bgwen bkw " style="left: 172px;">
                                <img :src=image+play.wenNum+".png" alt="">
                            </div>
                            <div class="scroll_con_item bgwen bkw " style="left: 260px;">
                                <img :src=image+play.wenNum+".png" alt="">
                            </div>
                            <div class="scroll_con_item bgwen bkw " style="left: 349px;">
                                <img :src=image+play.wenNum+".png" alt="">
                            </div> 
                           
                        </div>
           
                    </section>
                <!-- 底部人 -->
                <!-- 篮球 -->
                <img class="play_left_people_footerBasketball onepeople" src="image/play/q.png" alt="" v-show="isOnepeople">
                <footer class="play_left_people_footer">
                    <!-- 人 -->
                    <img class="play_left_people_footerPeople" src="image/play/re.png" alt="">
                    <!-- 力度表 -->
                    <div v-show="isVigorBor">
                        <img class="play_left_people_footerVigorBor"  src="image/play/l.png" alt="">
                        <img class="play_left_people_footerVigor" src="image/play/li.png" alt="">
                    </div>
                    <!-- 按钮 -->
                    <button class="play_left_people_footerBasket" disabled="disabled" @touchstart.stop.prevent='GrabLeft'  @touchend.stop.prevent='GrabClear'></button>
                </footer>
            </div>
            <!-- 右边用户 -->
            <div class="play_right_people">
                 <!-- 头部 -->
                 <header class="play_left_people_header">
                        
                        <!-- 分数 -->
                        <span class="play_left_people_headerFracts">{{play.FractionNumes}}</span>
                     
                    </header>
                          <!-- 中间内容 -->
                          <section class="play_cont_section  scroll scroll_3"  >
                                <!-- 父级元素 -->
                                <div class="play_cont_section_item scroll_con scroll_con_3 ">
                                    <div class="scroll_con_item bg7" id="yi" style="left: -29px;">
                                        <img :src=image+play.tenNums+'.png' alt="">
                                    </div>
                                    <div class="scroll_con_item bg7" id='er' style="left: 59px;">
                                        <img :src=image+play.ertenNums+".png" alt="" class="cont_section_item1 ">
                                    </div>
                                    <div class="scroll_con_item bg7" id='san' style="left: 147px;">
                                        <img :src=image+play.santenNums+".png" alt="" class="cont_section_item1 ">
                                    </div>
                                    <div class="scroll_con_item bg7" id='si' style="left: 236px;">
                                        <img :src=image+play.sitenNums+".png" alt="" class="cont_section_item1 ">
                                    </div>
                                    <div class="scroll_con_item bg7" id="wu" style="left: 324px;">
                                        <img :src=image+play.wutenNums+".png" alt="" class="cont_section_item1 ">
                                    </div> 
                                    <!-- <div class="scroll_con_item bg7" id="yi" style="left: 412px;">
                                        <img :src=image+play.tenNum+'.png' alt="">
                                    </div> -->
                                </div>
            
                            </section>
                            <!-- 第二级滚动 -->
                            <section class="play_cont_sections scroll scroll_4">
                                    <!-- 父级元素 -->
                                    <div class="play_cont_section_items scroll_con scroll_con_4 ">
                                        <div class="scroll_con_item bgwen bkw " style="left: -4px;">
                                            <img :src=image+play.wenNum+".png" alt="">
                                        </div>
                                        <div class="scroll_con_item bgwen bkw " style="left: 84px;">
                                            <img :src=image+play.wenNum+".png" alt="">
                                        </div>
                                        <div class="scroll_con_item bgwen bkw " style="left: 172px;">
                                            <img :src=image+play.wenNum+".png" alt="">
                                        </div>
                                        <div class="scroll_con_item bgwen bkw " style="left: 260px;">
                                            <img :src=image+play.wenNum+".png" alt="">
                                        </div>
                                        <div class="scroll_con_item bgwen bkw " style="left: 349px;">
                                            <img :src=image+play.wenNum+".png" alt="">
                                        </div> 
                                       
                                    </div>
                
                                </section>
                    <!-- 底部人 -->
                    <!-- 篮球 -->
                    <img class="play_left_people_footerBasketball   twopeople" src="image/play/q.png" alt="">
                    <footer class="play_left_people_footer">
                        <!-- 人 -->
                        <img class="play_left_people_footerPeople" src="image/play/r.png" alt="">
                       
                    </footer>
            </div>
            <div id="example" v-show="isExample"></div>
        </div>

        


    </body>
    <script src="js/index.js"></script>
    <script src="js/data.js"></script>
    <script src="js/red.js"></script>
    <script>
    
        
            // 滚动
           

            // 滚动
            var scrollEle = function(ele,endP,speed){
                var num = $(ele).position().left;
                num --;
                $(ele).css('left',num);
                if(num  <= -$('.bkw').width()){
                    $(ele).css('left',endP);
                }
                setTimeout(function(){
                    scrollEle(ele,endP,speed);
                }, speed);
            }
            var scrollInt = function(){
                $('.scroll_con_1').children('.scroll_con_item').each(function(index, el) {
                    scrollEle(el,$('.bkw').width()*4.5,10);
                });
                $('.scroll_con_2 .scroll_con_item').each(function(index, el) {
                    scrollEle(el,$('.bkw').width()*4.5,10);
                });
                $('.scroll_con_3').children('.scroll_con_item').each(function(index, el) {
                    scrollEle(el,$('.bkw').width()*4.5,10);
                });
                $('.scroll_con_4 .scroll_con_item').each(function(index, el) {
                    scrollEle(el,$('.bkw').width()*4.5,10);
                });
            }

            // 位置初始化
            var scrollPosInt = function(){
                    // console.log(11)
                $('.scroll_con_1').children('.scroll_con_item').each(function(index, el) {
                    $(el).css('left',$('.bkw').width()*index);
                });
                $('.scroll_con_2 .scroll_con_item').each(function(index, el) {
                    $(el).css('left',$('.bkw').width()*index);
                });
            }
            $(document).ready(function(){

            
                    scrollInt();
                    scrollPosInt();
            
            
            });

    </script>
</html>